#include<bits/stdc++.h>

using namespace std;


int main() {
    char a[1000] = "to know everything is to know nothing.";
    char b[100] = "to";
    char *p = a;
    int tot = 0;
    while (1) {
        p = strstr(p, b);
        if (p == NULL) {
            break;
        }
        ++tot;
        p = p + 2;
    }
    cout << tot << endl;
    return 0;
}
